package com.microtf.inscription.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Spring web应用启动类
 * @author guliuzhong
 */
@SpringBootApplication(exclude = {MailSenderAutoConfiguration.class})
@EnableTransactionManagement
@EntityScan({"com.microtf.inscription.jpa"})
@ComponentScan(value={"com.microtf"})
@EnableJpaRepositories(basePackages = "com.microtf.inscription.jpa")
@EnableCaching
public class Application {
    /**
     * 启动入口
     * @param args 命令参数
     *
     * @author guliuzhong
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
